package com.hxd.dao;

import com.hxd.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface User_dutyDao {
    //查找所有职位
    @Select("select ID,tid,name from user_duty")
    List<User_duty> selectUser_duty();

    //根据ID查找这职位
    @Select("select ID,tid,name from user_duty where ID=#{id}")
    User_duty selectOneUser_duty(int id);
}
